package com.User.Userservice.Mapper;

import com.User.Userservice.POJO.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Insert("insert into user value (#{Nickname}, #{Password} ,#{Name},#{Gender},#{Phone}, #{ConfirmPassword})")
    void insert(User user);

    @Select("select * from user where nickname like #{nickname}")
    User getInfoByNickName(String nickname);
}
